package com.sunny.shop.dto;

import com.sunny.shop.core.enumeration.LoginType;
import com.sunny.shop.validators.TokenPassword;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
public class TokenGetDTO {
    @NotBlank(message = "account不能为空")
    private String account;
    @TokenPassword(min = 2,max = 3, message = "{token.password}")

    private String password;
    private LoginType type;
}
